package com.teamwechat.service;

import com.teamwechat.pojo.Contacts;
import com.teamwechat.pojo.TbUser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

public interface UserService {

    public int registerUser(String registerCode, String code, String nickname, String photo);

    public Set<String> searchUserPermissions(int userId);

    public Integer login(String code);

    public TbUser searchById(int userId);

    public String searchUserHiredate(int userId);

    public HashMap searchUserSummary(int userId);
    public ArrayList<HashMap> searchUserGroupByDept(String keyword);

    public ArrayList<HashMap> searchMembers(List param);

    public HashMap SearchUserinfomation(int userId);

//    List<TbUser> getAllUsers();

    TbUser getUserById(Integer id);

    public ArrayList<HashMap> searchcontacts(HashMap map);

    public ArrayList<HashMap> addtel(HashMap map);

    void insert(Contacts contacts);

}